package zjitc.dao;

import org.apache.ibatis.annotations.Param;
import zjitc.po.Admin;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/4/12 16:51
 * @description:
 */
public interface AdminMapper {

    Admin login(@Param("username") String username, @Param("password") String password);

    int addAdmin(Admin admin);

  Admin findByCode(@Param("code") String code);

  int update(Admin admin);

    Admin findByUsername(@Param("username") String username);
}
